/**
 * 作者: chenlingzhi
 * 日期: 2024-12-24 10:39:11
 * 备注: 特权卡表
 */
package com.motu.monstercity.server.game.commondata.iap;

import io.vertx.core.json.JsonObject;

public class PrivilegeCardModel {
	protected int id; // id
	protected int iapGiftId; // 购买礼包
	protected int activeTime; // 有效时间 (秒,0:永久有效)
	protected int earnNum; // 城市收益增加 (百分比)
	protected int childNum; // 教学体力上限增加
	protected int goldNum; // 每日可多领取num（小时）金币
	protected int stageNum; // 关卡损耗率减少 (百分比)
	protected int isGuildBuild1; // 公会中级建设是否免费 (0:否 1:是)
	protected int isGuildBuild2; // 公会高级建设是否免费 (0:否 1:是)
	protected int isSnatch; // 贸易站储存是否无上限 (0:否 1:是)
	protected int diamondNum; // 每日领取钻石
	protected int offTimeAdd; // 增加的离线收益时间上限单位(单位小时)
	protected int ad; // 是否免广告 (0:否 1:是)
	protected int hospitalRecoverValue; // 医院每秒恢复伤员的数量
	protected int guardTimeAdd; // 围墙挂机时间上限增加(单位分钟)
	protected int guardQuickNum; // 围墙挂机额外领取次数增加
	protected String dailyReward; // 每日奖励
	protected int unionBehelpNum; // 被联盟成员互助的人数上限增加

	public PrivilegeCardModel() {
	}

	public PrivilegeCardModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		iapGiftId = obj.containsKey("iap_gift_id") ? obj.getInteger("iap_gift_id") : 0;
		activeTime = obj.containsKey("active_time") ? obj.getInteger("active_time") : 0;
		earnNum = obj.containsKey("earn_num") ? obj.getInteger("earn_num") : 0;
		childNum = obj.containsKey("child_num") ? obj.getInteger("child_num") : 0;
		goldNum = obj.containsKey("gold_num") ? obj.getInteger("gold_num") : 0;
		stageNum = obj.containsKey("stage_num") ? obj.getInteger("stage_num") : 0;
		isGuildBuild1 = obj.containsKey("is_guild_build_1") ? obj.getInteger("is_guild_build_1") : 0;
		isGuildBuild2 = obj.containsKey("is_guild_build_2") ? obj.getInteger("is_guild_build_2") : 0;
		isSnatch = obj.containsKey("is_snatch") ? obj.getInteger("is_snatch") : 0;
		diamondNum = obj.containsKey("diamond_num") ? obj.getInteger("diamond_num") : 0;
		offTimeAdd = obj.containsKey("off_time_add") ? obj.getInteger("off_time_add") : 0;
		ad = obj.containsKey("ad") ? obj.getInteger("ad") : 0;
		hospitalRecoverValue = obj.containsKey("hospital_recover_value") ? obj.getInteger("hospital_recover_value") : 0;
		guardTimeAdd = obj.containsKey("guard_time_add") ? obj.getInteger("guard_time_add") : 0;
		guardQuickNum = obj.containsKey("guard_quick_num") ? obj.getInteger("guard_quick_num") : 0;
		dailyReward = obj.containsKey("daily_reward") ? obj.getString("daily_reward") : "";
		unionBehelpNum = obj.containsKey("union_behelp_num") ? obj.getInteger("union_behelp_num") : 0;
	}

	public int getId() {
		return id;
	}

	public int getIapGiftId() {
		return iapGiftId;
	}

	public int getActiveTime() {
		return activeTime;
	}

	public int getEarnNum() {
		return earnNum;
	}

	public int getChildNum() {
		return childNum;
	}

	public int getGoldNum() {
		return goldNum;
	}

	public int getStageNum() {
		return stageNum;
	}

	public int getIsGuildBuild1() {
		return isGuildBuild1;
	}

	public int getIsGuildBuild2() {
		return isGuildBuild2;
	}

	public int getIsSnatch() {
		return isSnatch;
	}

	public int getDiamondNum() {
		return diamondNum;
	}

	public int getOffTimeAdd() {
		return offTimeAdd;
	}

	public int getAd() {
		return ad;
	}

	public int getHospitalRecoverValue() {
		return hospitalRecoverValue;
	}

	public int getGuardTimeAdd() {
		return guardTimeAdd;
	}

	public int getGuardQuickNum() {
		return guardQuickNum;
	}

	public String getDailyReward() {
		return dailyReward;
	}

	public int getUnionBehelpNum() {
		return unionBehelpNum;
	}

}
